/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.QuestionsFacade;
import org.ipti.br.tag.entity.Questions;
import javax.inject.Inject;
import javax.ejb.Stateless;
import java.util.List;

/**
 *
 * @author ipti
 */
@Stateless
public class QuestionsBO {

    @Inject
    private QuestionsFacade questionsDAO;

    public QuestionsFacade getQuestionsDAO() {
        return questionsDAO;
    }

    public void create(Questions questions) {
        getQuestionsDAO().create(questions);
    }

    public void edit(Questions questions) {
        getQuestionsDAO().edit(questions);
    }

    public void remove(Questions questions) {
        getQuestionsDAO().remove(questions);
    }

    public Questions find(Object id) {
        return getQuestionsDAO().find(id);
    }

    public List<Questions> findAll() {
        return getQuestionsDAO().findAll();
    }

    public void editForSynchronization(Questions questions) {
        getQuestionsDAO().editForSynchronization(questions);
    }

    public List<Questions> findRequiredAgreementQuestions() {
        return getQuestionsDAO().findRequiredAgreementQuestions();
    }
}
